﻿@using UniversityCourses.Models
@{    
    ViewBag.Title = "Manage Courses";
    Layout = "~/Views/Shared/SiteLayout.cshtml";
}
<a href="#" class="create">+ create new course</a>
<br />
@foreach (var course in Model)
{
    @Html.Partial("_CourseBox", (Course)course)
}
<div id="errormodal">
    <div class="error-modal">
        Error:<br />
        Already registered!</div>
</div>
<div id="comfirmmodal">
    <div class="comfirm-modal">
        <div>Click "OK" to subscribe to this course.</div>
        <div class="controls">
            <button class="comfirm-ok">OK</button>
            <button class="comfirm-cancel">Cancel</button>
        </div>
    </div>
</div>

<script type="text/javascript" src="~/Scripts/manage-courses.js"></script>
